package org.iartisan.maven.plugin.mavenconfig;

import org.apache.maven.plugins.annotations.Parameter;

/**
 * <p>
 * 基础配置
 *
 * @author King
 * @since 2017/8/30
 */
public class BaseConfig {

    @Parameter(required = true)
    private String directory;//代码成成的目录

    @Parameter(required = true, defaultValue = "all")
    private String command;//生成的代码：all,dao[DO，Mapper,DAO,DAOIMPL],service,controller,html

    @Parameter
    private String author;

    @Parameter
    private String orm;//选用的orm框架  mybatis-plus

    public enum ORM {
        mybatis_plus("mybatis-plus", "mybatis-plus"),
        querydsl("querydsl", "querydsl");

        ORM(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;


        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    public String getDirectory() {
        return directory;
    }

    public void setDirectory(String directory) {
        this.directory = directory;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getOrm() {
        return orm;
    }

    public void setOrm(String orm) {
        this.orm = orm;
    }
}
